package eworldpacs.ui;

import java.util.ArrayList;
import java.util.List;
import android.view.View;

public class LeadTreeNode {
   View _view;
   Object _tag;
   List<LeadTreeNode> _children;
   LeadTreeNode _parent;
   public LeadTreeNode(LeadTreeNode parent){
      _children = new ArrayList<LeadTreeNode>();
      _parent = parent;
   }
   
   public View getView(){
      return _view;
   }
   
   public void setView(View view){
      _view = view;
      _view.setTag(this);
   }
   
   public Object getTag(){
      return _tag;
   }
   
   public void setTag(Object tag){
      _tag = tag;
   }
   
   public List<LeadTreeNode> getChildren(){
      return _children;
   }
   
   public boolean hasChildren(){
      return _children.size() > 0;
   }
   
   public LeadTreeNode getParent(){
      return _parent;
   }
}
